home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / pupworld.swf / scripts / DefineSprite_293 / frame_1 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  380 b   |  16 lines

  1. stop();
  2. if(Heroes.Tools.getLivesRemaining() == -1)
  3. {
  4.    gotoAndStop("noLivesLeft");
  5.    play();
  6. }
  7. remainingText = Heroes.Tools.getLivesRemaining() + 1 + remainingText;
  8. if(Heroes.Tools.getLivesRemaining() == 0)
  9. {
  10.    n = remainingText.indexOf("lives");
  11.    if(n != -1)
  12.    {
  13.       remainingText = remainingText.substr(0,n) + "life" + remainingText.substr(n + 5);
  14.    }
  15. }
  16.